from open_game_demo import login_to_game
from getWindow_demo import WindowManager
import time
login_to_game()
wm = WindowManager()
time.sleep(3)
target_hwnd = wm.find_window_by_title("奶块 [7.7.2.1]")
if target_hwnd:
    print("找到目标窗口:", wm.get_window_info(target_hwnd))
    # 操作窗口
    # wm.set_foreground(target_hwnd)
    # wm.move_window(target_hwnd, 0, 0, 2400, 1400)
    wm.get_child_windows(target_hwnd)
else:
    print("未找到目标窗口")

